home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / fish / 001-100 / 001-025 / 024 / conquest / cc next >
Text File  |  1995-03-17  |  599b  |  24 lines

  1. .Key file,opt1,opt2,opt3
  2. ;           Compile a C program                       Version 3.00
  3. ;           Works with Lattice version 3.02 and above
  4. if not exists <file$t1>.c
  5.    echo "File <file$t1>.c does not exist.  Try again."
  6.    skip END
  7.    endif
  8. echo "-- compiling...<file$t1>.c"
  9.  
  10. :c/copy <file$t1>.c to ram:
  11. :c/lc1 <opt1> <opt2> <opt3> -i:include/ -i:include/lattice/ ram:<file$t1>
  12. if not exists "ram:<file$t1>.q"
  13.    echo "Compile failed."
  14.    quit 20
  15.    endif
  16. :c/lc2 ram:<file$t1>
  17. :c/delete ram:<file$t1>.c
  18. :c/copy ram:<file$t1>.o to <file$t1>.o
  19. :c/delete ram:<file$t1>.o
  20.  
  21. LAB END
  22. date >df0:now
  23.  
  24.